<!DOCTYPE html>
<html lang="en">
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Document</title>
  <link rel="stylesheet" href="./css/lightTip.css" type="text/css" />
  <style>
    section {
      height: 60vh;
      display: grid;
      place-items: center;
    }
  </style>
  <body>
    <h1 align="center">scrollend 事件体验</h1>
    <section>先轻微滚动试试</section>
    <section>快速滚动试试</section>
    <section>
      <p>
        <code>'onscrollend' in window</code>
        " 在当前浏览器的返回结果是？"
      </p>
      <br />
      <br />
      <output id="output">true</output>
    </section>
    <script src="./js/lightTip.js" type="module"></script>
    <script type="module">
      window.addEventListener("scrollend", (e) => {
        new LightTip("scrollend" + setTimeout(0), "loading");
      });
    </script>
  </body>
</html>
